

           //房型排序
           function typepaixu(obj,type){

                var thisObj = $(obj);
                var at = thisObj.attr('at');
                var rid = thisObj.attr('rid');

                var thisTable = thisObj.parent().parent().parent().parent().parent();

                if(type == 'shang'){
                     var thisObj2 = thisTable.prev().find('a[at]');
                }else{
                     var thisObj2 = thisTable.next().find('a[at]');
                }

                var at2 = thisObj2.attr('at');
                var rid2 = thisObj2.attr('rid');

               location.href = 'zonghe.php?at='+at+'&at2='+at2+'&rid='+rid+'&rid2='+rid2;
           }



           //房号排序
           function roompaixu(obj,type){

                var thisObj = $(obj);
                var at = thisObj.attr('at');
                var rid = thisObj.attr('rid');

                var thisTr = thisObj.parent().parent().parent().parent();

                if(type == 'shang'){
                     var thisObj2 = thisTr.prev().find('a[at]');
                }else{
                     var thisObj2 = thisTr.next().find('a[at]');
                }

               var at2 = thisObj2.attr('at');
               var rid2 = thisObj2.attr('rid');

              location.href = 'zonghe.php?at='+at+'&at2='+at2+'&rid='+rid+'&rid2='+rid2;
           }



          //恢复价格
          function hfjg(obj){

               var thisObj = $(obj);
               var thisTable = thisObj.parent().parent().parent().parent().parent();

               var riddiv = thisTable.find('div[rid]');
               var rid = '';

               riddiv.each(function(i){
                     rid += $(this).attr('rid')+'|';
               });

               rid = rid.replace(/\|$/,'');
               location.href = 'zonghe.php?hfrid='+rid;
          }



         //屏蔽价格
         function pbjg(obj,tid){

              var thisObj = $(obj);
              var thisTable = thisObj.parent().parent().parent().parent().parent();

              var prices = thisTable.find('span[price='+tid+']');

              var pid = '';
              prices.each(function(i){

                     pid += $(this).attr('pid')+'|';

              });

              pid = pid.replace(/\|$/,'');

              location.href = 'zonghe.php?pid='+pid;
         }









